<template>
    <view class="editCommunity">
        <view class="search">
            <u-search placeholder="请输入小区名字..." bgColor="#F8F8FA" :showAction="false" fontSize="24rpx"
                searchIconSize="20" color="#B1B1B1" placeholderColor="#B1B1B1" shape="square"></u-search>
        </view>
        <UserLabel v-for="(item, index) in communityList"  :item="item" width="148rpx" radius="5" 
            handle="编辑"></UserLabel>
            <view @click="getCommunitiesList">123</view>
    </view>
</template>

<script lang="ts" setup>
import UserLabel from '../components/UserLabel/index.vue';

import { getCommunityList } from "../../api/community";

const communityList = ([
    { name: '春波小区', address: '滨江区春波路646号', num: '166人已关注' },
    { name: '春波小区', address: '滨江区春波路646号', num: '166人已关注' }
])

const getCommunitiesList = async () => {
    let res = getCommunityList()
    console.log('res :>> ', res);
}
</script>

<style lang="scss" scoped>
.editCommunity {
    padding: 20rpx;
}
</style>